package com.egghiro.j2se.game.sace.device.factory.bulletfactory;

import com.egghiro.framework.j2se.game.core.model.actor.IActor2D;
import com.egghiro.j2se.game.sace.model.actor.FlyerComponent;
import com.egghiro.j2se.game.sace.model.actor.bullet.ForwardBullet;

public class ForwardBulletFactory extends BulletFactory {

    @Override
    public FlyerComponent createFlyer(int x, int y, double angle, IActor2D target, long life) {
        return new ForwardBullet(x, y, angle, target, life);
    }

    @Override
    public FlyerComponent createFlyer(int x, int y, double speed, double angle, IActor2D target, long life) {
        return new ForwardBullet(x, y, speed, angle, target, life);
    }
}
